package com.jianshuai.fallback;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.jianshuai.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

/*
* 这是一个降级类
* */
public class DowngradeUtil {

    public static User fallbackMethod1(@PathVariable("id") Long id, BlockException e){
        e.printStackTrace();
        return new User(-1L,"请不要频繁点击,我的亲~~~~");
    }
}
